package com.sample.tdf.sample.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sample.tdf.sample.domain.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 分页
     */
    IPage<Course> selectPage(@Param("page") Page page, @Param("course") Course course);

    Course findById(String id);

    Course findByIdOneSelect(String id);

    List<Course> findByStudentId(String studentId);

}
